package com.vcredit.creditcat.enumtype;

public enum LrhAuthEducationEnum {
  MASTER(1, "硕士及以上","NEWEDUCATION/SSJYS")
  , UNDERGRADUATE(2, "大学本科","NEWEDUCATION/BK")
  , JUNIOR(3, "大专","NEWEDUCATION/DZ")
  , SPECIAL(4, "中专","NEWEDUCATION/ZZ")
  , SENIOR(5,"高中及以下","NEWEDUCATION/GZ");

  private Integer code;
  private String desc;
  private String lrhCode;

  private LrhAuthEducationEnum(Integer code, String desc,String  lrhCode) {
    this.code = code;
    this.desc = desc;
    this.lrhCode = lrhCode;
  }

  public Integer getCode() {
    return code;
  }

  public String getDesc() {
    return desc;
  }
  
  public String getLrhCode() {
	    return lrhCode;
  }
  
  public  static String getLrhCodeByDesc(Integer code) {
		for (LrhAuthEducationEnum c : LrhAuthEducationEnum.values()) {
			if (c.getCode().equals(code)) {
				return c.lrhCode;
			}
		}
		return null;
  }


}
